package robo

type roboTaskTypeEnum = string

type roboTaskTypeStruct struct {
	PICK_TASK roboTaskTypeEnum
	DROP_TASK roboTaskTypeEnum
}

// 机械臂动作枚举
var RoboTaskTypeEnum = &roboTaskTypeStruct{
	PICK_TASK: "PICK_TASK",
	DROP_TASK: "DROP_TASK",
}

var roboTaskTypeMap = map[roboTaskTypeEnum]string{
	RoboTaskTypeEnum.PICK_TASK: "抓袋",
	RoboTaskTypeEnum.DROP_TASK: "放袋",
}

// 获取机械臂动作枚举相应中文描述
func GetRoboTaskTypeDesc(code roboTaskTypeEnum) string {
	if action, ok := roboTaskTypeMap[code]; ok {
		return action
	}
	return "未知类型"
}
